<span class="flex items-center">
  <span class="h-px flex-1 bg-gray-300 dark:bg-gray-600"></span>

  <span class="shrink-0 px-4 text-gray-900 dark:text-white"> Title goes here </span>

  <span class="h-px flex-1 bg-gray-300 dark:bg-gray-600"></span>
</span>
